package com.xprime.mobileFramework.extensions;

import java.util.HashMap;
import java.util.Map;

import android.os.Vibrator;

import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
import com.xprime.mobileFramework.file.FileDownLoadExtension;
import com.xprime.mobileFramework.file.FileExist;
import com.xprime.mobileFramework.file.FileOpenExtension;
import com.xprime.mobileFramework.function.AlertDialogFREFunction;
import com.xprime.mobileFramework.function.ItemListDialogFREFunction;
import com.xprime.mobileFramework.function.LoadingFREFunction;
import com.xprime.mobileFramework.function.TimePickerDialogFREFunction;
import com.xprime.mobileFramework.function.ToastFREFunction;

public class XprimeMobileExtensionContext extends FREContext 
{
	public Vibrator vb = null;
	
	@Override
	public void dispose() 
	{
 
	}
	
	@Override
	public Map<String, FREFunction> getFunctions() 
	{
		Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();

		functionMap.put("toast", new ToastFREFunction());
		functionMap.put("alertDialog", new AlertDialogFREFunction());
		functionMap.put("itemListDialog", new ItemListDialogFREFunction());
		functionMap.put("timerPickerDialog", new TimePickerDialogFREFunction());
		functionMap.put("fileOpenExtension", new FileOpenExtension());
		functionMap.put("fileDownloadExtension", new FileDownLoadExtension());
		functionMap.put("isFile", new FileExist());
		functionMap.put("loading", new LoadingFREFunction());
		
		return functionMap;
	}
}


